callsign = 1
code3on = 1
Duty = false
RegisterCommand("duty", function(source, args, raw)
        callsign = args[1]
        if args[1] == nil then
                print("you cannot set a air with your callsign")
                callsign = false  
        end
        if  callsign == args[1] then
                TriggerEvent("eblips:add", {name = args[1], src = source, color = 26})
                Duty = true
        end
    end)
RegisterCommand("code3", function(source, args, raw)
        if Duty == true then
        code3call = callsign
        TriggerEvent("eblips:remove", source)
        TriggerEvent("eblips:add", {name = code3call, src = source, color = 44}) 
        end
        if Duty == false then 
                print("you need on duty!")  
        end          
end) 
RegisterCommand("code2", function(source, args, raw)
        if Duty == true then
        code2call = callsign
        TriggerEvent("eblips:remove", source)
        TriggerEvent("eblips:add", {name = code2call, src = source, color = 5}) 
        end
        if Duty == false then 
                print("you need on duty!")  
        end     
end) 
RegisterCommand("offduty", function(source, args, raw)
        if Duty == true then
        TriggerEvent("eblips:remove", source)
        Duty = false
        end
        if Duty == false then 
                print("you need on duty!")  
        end  
end)
RegisterCommand("cs", function(source, args, raw)
        if Duty == true then
        callsign = args[1]
        if args[1] == nil then
                print("you cannot set a air with your callsign")
                callsign = false  
        end
        if  callsign == args[1] then
        TriggerEvent("eblips:remove", source)
        TriggerEvent("eblips:add", {name = args[1], src = source, color = 26})
        end
        end
        if Duty == false then 
                print("you need on duty!")  
        end 
end)
RegisterCommand("fduty", function(source, args, raw)
        callsign = args[1]
        if args[1] == nil then
                print("you cannot set a air with your callsign")
                callsign = false  
        end
        if  callsign == args[1] then
                TriggerEvent("eblips:add", {name = args[1], src = source, color = 1})
                Duty = true
        end
    end)
    RegisterCommand("fcs", function(source, args, raw)
        if Duty == true then
        callsign = args[1]
        if args[1] == nil then
                print("you cannot set a air with your callsign")
                callsign = false  
        end
        if  callsign == args[1] then
        TriggerEvent("eblips:remove", source)
        TriggerEvent("eblips:add", {name = args[1], src = source, color = 1})
        end
end
        if Duty == false then 
                print("you need on duty!")  
        end 
end)